import request from '@/utils/request'

// 查询配送站列表
export function listPeisongzhan(query) {
  return request({
    url: '/system/peisongzhan/list',
    method: 'get',
    params: query
  })
}

// 查询配送站详细
export function getPeisongzhan(pszId) {
  return request({
    url: '/system/peisongzhan/' + pszId,
    method: 'get'
  })
}

// 新增配送站
export function addPeisongzhan(data) {
  return request({
    url: '/system/peisongzhan',
    method: 'post',
    data: data
  })
}

// 修改配送站
export function updatePeisongzhan(data) {
  return request({
    url: '/system/peisongzhan',
    method: 'put',
    data: data
  })
}

// 删除配送站
export function delPeisongzhan(pszId) {
  return request({
    url: '/system/peisongzhan/' + pszId,
    method: 'delete'
  })
}
